package com.lili.collection.core.enums;

import com.lili.collection.core.support.EnumFuncExtension;
import com.lili.collection.core.support.LabelSupport;

/**
 * 执行状态
 *
 * @author lili
 * @date 2023/3/6 23:16
 * @description 执行状态
 */
public enum RunnerState implements LabelSupport, EnumFuncExtension {
    CREATED("已创建"),
    INITIALIZED("已初始化"),
    RUNNING("正在运行"),
    PAUSED("已暂停"),
    STOPPED("已停止"),
    DISPOSED("已释放"),
    ERROR("发生错误");

    private String label;

    private int code;

    RunnerState(String label) {
        this.label = label;
    }

    @Override
    public String getLabel() {
        return this.label;
    }
}